package org.seedltd.upms.model.sys.form;


import java.util.Date;

import org.seedltd.base.annotation.Like;
import org.seedltd.base.annotation.LikeType;
import org.seedltd.base.annotation.SqlSegment;
import org.seedltd.core.base.BaseSearchForm;

import com.baomidou.mybatisplus.annotation.OrderBy;

import lombok.Getter;
import lombok.Setter;

/**
 * 部门表
 *
 * @author laizuan
 * @date 2020/08/06
 */
@Getter
@Setter
public class SysDeptSearchForm extends BaseSearchForm {

    /**
     * 父部门id
     */
    @SqlSegment
    private Long parentId;


    /**
     * 部门名称
     */
    @Like(likeType = LikeType.right)
    private String deptName;


    /**
     * 部门代码
     */
    @SqlSegment
    private String deptCode;

    @OrderBy(sort = 1)
    private Integer sortNo;

    @OrderBy(sort = 2)
    private Date createTime;
}
